package com.cnap.model.exception;

/**
 * <类文件描述>
 *
 * @author xc
 **/
public class BaseException extends RuntimeException {
    // code
    private int code;
    // message
    private String message;

    public BaseException(Integer code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    /**
     * code
     *
     * @return code
     */
    public int getCode() {
        return code;
    }

    /**
     * code
     *
     * @param code code
     */
    public void setCode(int code) {
        this.code = code;
    }

    /**
     * message
     *
     * @return message
     */
    @Override
    public String getMessage() {
        return message;
    }

    /**
     * message
     *
     * @param message message
     */
    public void setMessage(String message) {
        this.message = message;
    }
}
